package com.pine.service.core;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

/**
 * Poi服务
 *
 * @author pine manage
 * @since 2024-08-09
 */
public interface PoiService<QueryRequest> {
    /**
     * 导入
     */
    default void importExcel(MultipartFile file) {
        throw new UnsupportedOperationException();
    }

    /**
     * 获取导入模版
     */
    default void getImportTemplate(HttpServletResponse response) {
        throw new UnsupportedOperationException();
    }

    /**
     * 同步导出
     */
    default void syncExport(HttpServletResponse response, QueryRequest request) {
        throw new UnsupportedOperationException();
    }

    /**
     * 异步导出
     */
    default void asyncExport(QueryRequest request) {
        throw new UnsupportedOperationException();
    }
}
